/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.knet.sp.ncrm.modules.call.log.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.hibernate.validator.constraints.Length;

import java.util.Date;

import javax.validation.constraints.NotNull;

import cn.knet.sp.ncrm.common.persistence.DataEntity;

/**
 * 单表生成Entity
 *
 * @author zhangbin
 * @version 2015-08-03
 */
public class CallReportStatLog extends DataEntity<CallReportStatLog> {

	private static final long serialVersionUID = 1L;
	private Date startDate;        // 开始时间
	private Date endDate;        // 结束时间
	private String statName;        // 通常为存储过程名称
	private String statParm;        // 统计参数
	private String statResult;        // 统计结果

	public CallReportStatLog() {
		super();
	}

	public CallReportStatLog(String id) {
		super(id);
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message = "开始时间不能为空")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Length(min = 1, max = 255, message = "通常为存储过程名称长度必须介于 1 和 255 之间")
	public String getStatName() {
		return statName;
	}

	public void setStatName(String statName) {
		this.statName = statName;
	}

	@Length(min = 0, max = 255, message = "统计参数长度必须介于 0 和 255 之间")
	public String getStatParm() {
		return statParm;
	}

	public void setStatParm(String statParm) {
		this.statParm = statParm;
	}

	@Length(min = 0, max = 255, message = "统计结果长度必须介于 0 和 255 之间")
	public String getStatResult() {
		return statResult;
	}

	public void setStatResult(String statResult) {
		this.statResult = statResult;
	}

}